package com.client2.web;

import com.alibaba.fastjson.JSON;
import com.client2.config.ConfigEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者: LCG
 * 日期: 2019/12/5 15:59
 * 描述:
 */
@RestController
@RefreshScope
public class TestConfig2Controller {

    @Autowired
    private ConfigEntity configEntity;

    @RequestMapping("test001")
    public String test(){
        return JSON.toJSONString(configEntity);
    }


}
